package com.hmall.cart;

import com.hmall.api.client.ItemFeign;
import com.hmall.cart.config.CartProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;


@MapperScan("com.hmall.cart.mapper")
@SpringBootApplication
@EnableFeignClients(basePackageClasses = {ItemFeign.class}/*,defaultConfiguration = DefaultFeignConfig.class*/)
@EnableConfigurationProperties(CartProperties.class)
public class CartApplication {
    public static void main(String[] args) {

        SpringApplication.run(CartApplication.class, args);

    }

//    @Bean
//    public RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}